package com.cros.threads;

public class PruebaThread  implements Runnable{
	
	public void run(){
		System.out.println("NameRunnable running");
		System.out.println("Run by "
		+ Thread.currentThread().getName());
	}
	
	public static void main(String argv[]){
		PruebaThread pt = new PruebaThread();
		Thread foo = new Thread(pt);
		Thread bar = new Thread(pt);
		Thread bat = new Thread(pt);
		foo.start();
		bar.start();
		bat.start();
		Thread t = new Thread();
		Thread tthr = new Thread("simple");
		t.start();
		tthr.start();
		System.out.println("finish:"+Thread.currentThread().getName());
	}

}
